<template>
	<view class="claim" v-html="datas.peifu_rule">
		<!-- <view class="pgImg imgPublic">
			<image src="https://wx.gdxixiashi.com/public/images/home/bjyuansu@2x.png"></image>
		</view>
		<view class="container">
			<view class="advImg imgPublic">
				<image src="https://wx.gdxixiashi.com/public/images/home/top@2x.png" mode="widthFix"></image>
			</view>
			<view class="part">
				<view class="title">超时赔付</view>
				<view class="content">
					文字内容文字内容文字内容文字内容文字内容文字内容文字内容文字内容文字内容文字内容文字内容文字内容
				</view>
			</view>
			<view class="part">
				<view class="title">赔付标准</view>
				<view class="content">
					文字内容文字内容文字内容文字内容文字内容文字内容文字内容文字内容文字内容文字内容文字内容文字内容
				</view>
			</view>
		</view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				datas:{},
			};
		},
		onLoad() {
			this.initData();
		},
		onShareAppMessage() {
			return{
				title:'洗匣士~您的家居窗帘清洗助手',
				path:'/pages/home?spreadId=' + (uni.getStorageSync('userId')?uni.getStorageSync('userId'):''),
				imageUrl:getApp().globalData.imgDomain+'public/logo.png',
				desc:'手机下单 | 专员取送 | 生态环保 | 轻奢洗护',
			}
		},
		onShareTimeline() {
			return{
				title:'洗匣士~您的家居窗帘清洗助手',
				path:'/pages/home?spreadId=' + (uni.getStorageSync('userId')?uni.getStorageSync('userId'):''),
				imageUrl:getApp().globalData.imgDomain+'public/logo.png',
				desc:'手机下单 | 专员取送 | 生态环保 | 轻奢洗护',
			}
		},
		methods:{
			initData(){
				this.tool.getData('User/about',{}).then(res=>{
					console.log(res);
					if(res){
						this.datas = res;
					}
				}).catch(err=>{
					console.log(err);
				})
			}
		}
	}
</script>

<style lang="scss">
	page{
		height: 100%;
	}
	.claim{
		width: 100%;
		height:100%;
		padding: 24rpx 3.2%;
		box-sizing: border-box;
		
		/* background: linear-gradient(0deg,#4a17cd 0%, #2871fa 100%);
		position: relative; */
		.container{
			width: 100%;
			height:100%;
			padding: 12px 3%;
			box-sizing: border-box;
			position: absolute;
			top: 0;
			left: 0;
		}
		.pgImg{
			width: 100%;
			height:100%;
			image{
				height:100%;
			}
		}
		.part{
			width: 90%;
			margin: 0 auto 16px;
			border-radius: 5px;
			overflow: hidden;
			.content{
				width:100%;
				padding: 12px;
				box-sizing: border-box;
				background: white;
				line-height: 22px;
			}
			.title{
				width:100%;
				text-align: center;
				color: white;
				background: linear-gradient(to right,#45cbff,#5161ff);
				padding: 12px 0;
				font-size: 16px;
				font-weight: bold;
				letter-spacing: 2.7px;
			}
		}
	}
</style>
